package com.wetsion.securityoauthdemo.sdkdemo.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @author weixin
 * @version 1.0
 * @CLassName SercurityConfig
 * @date 2019/3/7 11:52 AM
 */
@Configuration
@EnableWebSecurity
public class SercurityConfig extends WebSecurityConfigurerAdapter {

    @Override
    protected void configure(HttpSecurity http) throws Exception {
//        http.authorizeRequests().antMatchers("/login").permitAll()
        http.authorizeRequests().anyRequest().permitAll()
                .and()
                .csrf().disable();
    }
}
